package com.rpoonolly.simplegame.core;

import javax.vecmath.Vector2d;


public class Collision<E extends Entity> {
	protected E staticEntity, dynamicEntity;
	protected Vector2d v;
	
	public Collision(E staticEntity, E dynamicEntity, Vector2d v) {
		this.staticEntity = staticEntity;
		this.dynamicEntity = dynamicEntity;
		this.v = v;
	}
	
	public E getStaticEntity() { return staticEntity; }
	public E getDynamicEntity() { return dynamicEntity; }
	public Vector2d getMovementVector() { return v; }
	
	@Override
	public String toString() {
		return "Collision<" + staticEntity.getClass().getCanonicalName() + ">: \n"
				+ "\t" + staticEntity + "\n"
				+ "\t" + dynamicEntity + "\n"
				+ "\t" + v;
	}
}
